home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / sys / amiga / programmer / 3209 < prev    next >
Encoding:
Internet Message Format  |  1996-08-05  |  2.0 KB

  1. Path: informatik.tu-muenchen.de!fischerj
  2. From: fischerj@informatik.tu-muenchen.de (Juergen "Rally" Fischer)
  3. Newsgroups: comp.sys.amiga.programmer
  4. Subject: Re: ds.l
  5. Date: 8 Feb 1996 15:22:50 GMT
  6. Organization: Technische Universitaet Muenchen, Germany
  7. Distribution: world
  8. Message-ID: <4fd4ga$k9m@sunsystem5.informatik.tu-muenchen.de>
  9. References: <497.6609T1129T586@mbox3.swipnet.se> <4f7j1k$dfs@helios.cto.us.edu.pl> <4fb4fn$3dr@news.ox.ac.uk>
  10. NNTP-Posting-Host: hphalle4e.informatik.tu-muenchen.de
  11. Originator: fischerj@hphalle4e.informatik.tu-muenchen.de
  12.  
  13.  
  14. In article <4fb4fn$3dr@news.ox.ac.uk>, worc0223@sable.ox.ac.uk (Benjamin Hutchings) writes:
  15. |> Organization: Oxford University, England
  16. |> Lines: 18
  17. |> Message-ID: <4fb4fn$3dr@news.ox.ac.uk>
  18. |> References: <497.6609T1129T586@mbox3.swipnet.se> <4f7j1k$dfs@helios.cto.us.edu.pl>
  19. |> NNTP-Posting-Host: sable.ox.ac.uk
  20. |> 
  21. |> In article <4f7j1k$dfs@helios.cto.us.edu.pl>,
  22. |> Grzegorz Calkowski <calkowsk@usctoux1.cto.us.edu.pl> wrote:
  23. |> >Patrik Nilsson (patrik.nilsson@mbox3.swipnet.se) wrote:
  24. |> >: When using FileInfoBlock it must be long word aligned.
  25. |> >: Q: In asm you have 'ds.l'. Is there any equal in C?
  26. |> >
  27. |> >You're wrong!! FIB must be on 8 bytes boundary, not 4 bytes! The best way
  28. |> >to achieve that is to use AllocDosObject(), which returns an allocated &
  29. |> >initialized fib for you.
  30. |> 
  31. |> Go on then, genius. Explain to us all exactly why we need to align our
  32. |> FileInfoBlocks on 8-byte boundaries. I suppose it is because BPTRs are
  33. |> shifted right 3 places from APTRs, right? Sort your facts out.
  34.  
  35. myabe I remember wrong, but I think I did lsl.l #2 for converting the
  36. BPTR.
  37.  
  38. |> -- 
  39. |> --
  40. |> Ben Hutchings, student. Finger me on worc0223@sable.ox.ac.uk for various info.
  41. |> email: benjamin.hutchings@worc.ox.ac.uk  WWW: http://sable.ox.ac.uk/~worc0223/
  42. |> Users of the world unite! You have nothing to lose but your Micro$oft software
  43. ------------------------------------------------------------------------
  44.    fischerj@Informatik.TU-Muenchen.DE (Juergen "Rally" Fischer)   =:)
  45.  
  46.